package main

import (
	"google.golang.org/grpc"
	"gowork/studentGrpc/webMessage"
	"gowork/studentGrpc/webServer/handler"
	"net"
)

func main() {

	server := grpc.NewServer()

	webMessage.RegisterStudentServiceServer(server, new(handler.StudentHandlerCuda))
	lis, err := net.Listen("tcp", ":9364")
	if err != nil {
		panic(err.Error())
	}
	server.Serve(lis)

}
